<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" layout:decorate="main"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title>销售机会管理</title>
</head>
<body>
<div layout:fragment="content">
    <div class="">
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>缺认流失 <i class="fa fa-user"></i></h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <div class="clearfix"></div>
                        <form class="form-horizontal form-label-left" th:action="@{/lost/save}" action="/lost/save" method="post">
                            <input type="hidden" name="lstId"  th:value="${losts.lstId}" />
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="lstCustName">编号 <span class="required"></span>
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="lstCustName" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="10" data-validate-words="1" name="lstCustName" required="required"
                                           placeholder="请输入客户名称" type="text" th:value="${losts.lstCustName}"/>
                                </div>
                            </div>
                            <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="lstCustManagerName"> 客户名称
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="lstCustManagerName" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="10" data-validate-words="1" name="lstCustManagerName"
                                       placeholder="请输入负责人" type="text" th:value="${losts.lstCustManagerName}"/>
                            </div>
                        </div>

                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="lstCustManagerName"> 客户经理
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="lstCustManagerName" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="10" data-validate-words="1" name="lstCustManagerName"
                                           placeholder="请输入公司电话" type="text" th:value="${losts.lstCustManagerName}" />
                                </div>
                            </div>

                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="lstLastOrderDate"> 上次下单时间
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="lstLastOrderDate" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="10" data-validate-words="1" name="lstLastOrderDate"
                                           placeholder="请输入概要" type="text" th:value="${losts.lstLastOrderDate}" />
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="lstLostDate"> 确认流失时间
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="lstLostDate" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="10" data-validate-words="1" name="lstLostDate"
                                           placeholder="请输入概要" type="text" th:value="${losts.lstLostDate}" />
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="lstReason"> 状态
                                </label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="lstReason" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="10" data-validate-words="1" name="lstReason"
                                           placeholder="请输入概要" type="text" th:value="${losts.lstReason}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-6 col-md-offset-3">
                                    <button id="send" type="submit" class="btn btn-success">保存</button>
                                    <button type="button" class="btn btn-primary" id="back">返回</button>
                                    <br/><br/>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script layout:fragment="js">
    $(document).ready(function(){
        $("#back").on("click",function(){
            window.history.back();
        });
    });
</script>
</html>